﻿<UserControl x:Class="Tisbi.LawFirm.UI.Views.Controls.Forms.EmployeesCRUDForm"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="500" d:DesignWidth="380">
    <ScrollViewer>
        <StackPanel Orientation="Vertical">
            <StackPanel.Resources>
                <Style TargetType="StackPanel">
                    <Setter Property="Orientation" Value="Horizontal" />
                    <Setter Property="Margin" Value="0,0,0,4" />
                </Style>
            </StackPanel.Resources>
            <StackPanel>
                <Label Content="№:" />
                <TextBox Text="{Binding Path=Model.Id}" IsReadOnly="True" Background="LightGray"/>
            </StackPanel>
            <StackPanel>
                <Label Content="Короткое ФИО:" />
                <TextBox Text="{Binding Path=ShortFio, Mode=TwoWay, ValidatesOnDataErrors=True}" />
            </StackPanel>
            <StackPanel>
                <Label Content="Роль:" />
                <ComboBox ItemsSource="{Binding Path=Roles}"
                      SelectedItem="{Binding Path=SelectedRole, Mode=TwoWay}" />
            </StackPanel>
            <StackPanel>
                <Label Content="Логин:" />
                <TextBox Text="{Binding Path=Model.Login, Mode=TwoWay}" />
            </StackPanel>
            <StackPanel>
                <Label Content="Пароль:" />
                <TextBox Text="{Binding Path=Model.Password, Mode=TwoWay}" />
            </StackPanel>
            <StackPanel>
                <Label Content="ФИО:" />
                <TextBox Text="{Binding Path=Model.FullFio, Mode=TwoWay}" />
            </StackPanel>
            <StackPanel>
                <Label Content="Пол:" />
                <ComboBox ItemsSource="{Binding Path=Genders}"
                      SelectedItem="{Binding Path=SelectedGender, Mode=TwoWay}" />
            </StackPanel>
            <StackPanel>
                <Label Content="Дата рождения:"  />
                <DatePicker Text="{Binding Path=Model.DobTime, Mode=TwoWay}" />
            </StackPanel>
            <StackPanel>
                <Label Content="Место рождения:"  />
                <TextBox Text="{Binding Path=Model.PlaseOfBirth, Mode=TwoWay}"  />
            </StackPanel>
            <StackPanel>
                <Label Content="Адрес:" />
                <TextBox Text="{Binding Path=Model.Address, Mode=TwoWay}" />
            </StackPanel>
            <StackPanel>
                <Label Content="Серия паспорта:" />
                <TextBox Text="{Binding Path=Model.PasportSeries, Mode=TwoWay}" />
            </StackPanel>
            <StackPanel>
                <Label Content="Номер паспорта:" />
                <TextBox Text="{Binding Path=Model.PasportNumber, Mode=TwoWay}" />
            </StackPanel>
            <StackPanel>
                <Label Content="Дата выдачи паспорта:" />
                <DatePicker Text="{Binding Path=Model.PasportStartOn, Mode=TwoWay}" />
            </StackPanel>

            <StackPanel>
                <Label Content="Место выдачи паспорта:" />
                <TextBox Text="{Binding Path=Model.PasportWhoGet, Mode=TwoWay}" />
            </StackPanel>

            <StackPanel>
                <Label Content="Код подразделения:" />
                <TextBox Text="{Binding Path=Model.PasportNumberOfSubdivision, Mode=TwoWay}" />
            </StackPanel>
        </StackPanel>
    </ScrollViewer>
</UserControl>
